import config from "./config"
export default {
	data() {
		return {
			//设置默认的分享参数
			share: {
				title: '欢迎加入ESSENCE大家庭',
				path: '/pages/home/index',
				imageUrl: config.HOST+'/yinsi.png',
				// imageUrl: 'https://gips2.baidu.com/it/u=195724436,3554684702&fm=3028&app=3028&f=JPEG&fmt=auto?w=1280&h=960', // 测试网络图片
				// imageUrl：'/static/images/share-1.png' // 测试本地图片
			}
		}
	},
	onShareAppMessage(res) {
		return {
			title: this.share.title,
			path: this.share.path,
			imageUrl: this.share.imageUrl
		}
	},
	onShareTimeline(res) {
		return {
			title: this.share.title,
			path: this.share.path,
			imageUrl: this.share.imageUrl
		}
	},
}